package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhUserFileInsertReq;
import com.xiao.hao.req.XhUserFileQueryPageReq;
import com.xiao.hao.req.XhUserFileUpdateReq;
import com.xiao.hao.resp.XhUserFileResp;
import com.xiao.hao.entity.XhUserFile;

/**
*
*
* @Description 用户附件表 类型转换
* @Author xiaohao
* @Date 2025-03-05 17:57:41
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhUserFileConvertor {

    XhUserFileConvertor INSTANCE = Mappers.getMapper(XhUserFileConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhUserFile
    * @author xiaohao
    * @date 2025-03-05 17:57:41
    */
    XhUserFile reqToEntity(XhUserFileInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhUserFile
    * @author xiaohao
    * @date 2025-03-05 17:57:41
    */
    XhUserFile reqToEntity(XhUserFileUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhUserFileResp
    * @author xiaohao
    * @date 2025-03-05 17:57:41
    */
    XhUserFileResp entityToResp(XhUserFile entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhUserFileResp>
    * @author xiaohao
    * @date 2025-03-05 17:57:41
    */
    List<XhUserFileResp> entityListToRespList(List<XhUserFile> list);
}



